﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Data
{
    public class LotteryBuyCost_temp
    {
        private readonly string primaryKey = "Id";
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public long Add(Model.LotteryBuyCost_temp model)
        {
            return new DataAccess().Add<Model.LotteryBuyCost_temp>(model, primaryKey);
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public bool Delete(long Id)
        {
            return new DataAccess().Delete<Model.LotteryBuyCost_temp>(Id, primaryKey);
        }
        /// <summary>
        /// 单条
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>

        public Model.LotteryBuyCost_temp GetModelBysql(string sql)
        {
            return new DataAccess().Get<Model.LotteryBuyCost_temp>(sql);
        }
    }
}
